home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
General
/
PObj->PPob Folder
/
PObj->PPob Release Notes
< prev
Wrap
Text File
|
1994-03-31
|
3KB
|
66 lines
PObj->PPob Release Notes
version 1.0
03-30-94
Gregory Dow
Metrowerks
This program converts PowerPlant version d5 & d6 (DR1 CodeWarrior) 'PObj'
resources to PowerPlant d7 (DR2 CodeWarrior) 'PPob' resources.
The resource format that PowerPlant uses to describe Panes was changed in
version d7 for several reasons, among them:
- 'PPob' resources have a Rez template. It was not possible to completely
define a 'PObj' resource with a Rez template.
- 'PPob' resource format is easier to extend for user-defined Panes
- 'PPob' resource is more compact
Using the Converter
-------------------
(1) Drag and drop file(s) containing 'PObj' resources onto the program icon
(2) The converter program will create separate file(s) which contain
the converted 'PPob' resources. The file(s) will have the same
name as the original file with a ".PPob" suffix appended. The
.PPob file(s) will be ResEdit resource files. Each 'PPob' resource
will have the same ID number, name, and attributes of the
corresponding 'PObj' resource.
(3) Using a resource editor, copy the 'PPob' resources into your project
resource file. The old 'PObj' resources are no longer needed
and can be deleted. (But you may want to keep a copy of the
old 'PObj' resources for reference).
Known Limitations
-----------------
- This is a quick-and-dirty utility. It does not check for error conditions
such as locked or full disks. The program may "hang" when reading a
corrupted or invalid 'PObj' resource. The program should complete
execution in a couple of seconds. If it takes longer, it has probably
"hung" and you should abort the program by hitting command-option-escape.
- The program will delete any existing target file. For example, if you
convert a file named "MyResources", the converter will create a
file called "MyResources.PPob', deleting any existing file with that name.
- The program does not handle custom data types. If you extended the 'PObj'
resource format to define your own objects and associated data, the
program will do its best to skip over your custom objects, converting
them into 'null' objects. However, since there is no way for the program
to determine the size of your custom objects, this may generate
incorrect results. When trying to skip over custom data, the program
scans for 'End.' tags. This works in some, but not all, cases.
NOTE: The converter program was written using the AppleEvent, File, and
Stream classes of PowerPlant, using the "Dropper" sample program
as a starting point. (The "Dropper" sample program is included with
PowerPlant on the DR2 CodeWarrior CD-ROM.)